package com.angel.core.base;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.angel.core.util.Pager;

public interface BaseProvider<T extends BaseModel> {
   
	//分页查询
    public Pager findAll(T record,Pager pager);
    
    public Pager findAll(List<Map<String,Object>> list,Pager pager);

    public List<Map<String, Object>> findAll(T record);
    
    @Transactional
    public int insert(T record);
    
    @Transactional
    public int updateById(T record);
    
    @Transactional
    public int delById(T record);
    
    public T findById(T record);
    
    @Transactional
    public int insertAll(List<T> record);

}
